package com.shyroke.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.shyroke.entity.PiZhu;

@Service
public interface PiZhuServiceI {

	void insert(PiZhu pizhu);

	/**
	 * 根据段落P的id、用户id、小说id来删除该批注
	 * @param xiaoshuoid
	 * @param id
	 * @param valueOf
	 */
	void deleteByPID(Integer xiaoshuoid, Integer userId, Integer pId);

	
	/**
	 * 根据用户ID和小说ID获取所有批注
	 * @param id
	 * @param xiaoshuoid
	 * @return
	 */
	List<PiZhu> selectByUserIdAndXiaoshuoID(Integer id, Integer xiaoshuoid);

	
	/**
	 * 根据用户ID、段落Pid，小数id获取批注
	 * @param userId
	 * @param pId
	 * @param xiaoshuoId
	 * @return
	 */
	PiZhu selectByPid(Integer userId, Integer pId, Integer xiaoshuoId);

}
